import os
import re
import sys
def get_app_path():
    """获取打包后的可执行文件所在路径"""
    if getattr(sys, 'frozen', False):
        return os.path.dirname(sys.executable)
    else:
        return os.path.dirname(os.path.abspath(__file__))
    
# BASE_PATH=re.sub(r'[/]',r'\\',os.path.dirname(__file__ ))
BASE_PATH=re.sub(r'[/]',r'\\',get_app_path())
VIDEO_PATH=os.path.join(BASE_PATH,'video')
OUTER_PATH=os.path.join(BASE_PATH,'outer')
AUDIO_PATH=os.path.join(BASE_PATH,'audio')